package com.dxy.chatserver.vo;

import lombok.Data;

@Data
public class ReqFindPageReqVo {

    //结束时间
    private Long startTime;
    //最新时间
    private Long endTime;
    //会话id
    private String session;
    //
    private String context;

    private Integer page;
    private Integer size;

    private Integer sort;

    public Integer getPage() {
        if(page <= 0){
            return 0;
        }
        if(page > 0){
            page = page - 1;
        }
        return page;
    }
}
